# Create your models here.
from datetime import datetime
from django.db import models
# from personal_center.models import User
# Create your models here.
from Administrative_office_system.utils.BaseModel import BaseModel


class ScanCode(BaseModel):
    """会议扫码二维码表格"""
    TYPE = (
        ('1', '院长办公会议题会议'),
        ('2', '党委会议题会议'),
        ('3', '普通会议'),
        ('4', '委员会会议'),
    )
    type = models.CharField('会议类型', max_length=10, choices=TYPE, default='1')
    img_path = models.CharField('二维码地址', max_length=100, default='')
    whether_scan = models.CharField('是否已经扫码', max_length=10, default='0')
    topic_year = models.CharField('会议年份', max_length=20, default=f"{datetime.now().year}")
    meet_number = models.CharField('对应会议次数', max_length=10, default='')

    class Meta:
        verbose_name = '会议扫码二维码表格'
        verbose_name_plural = verbose_name
